﻿using System;
using OrderManage.Utility;

namespace OrderManage.WebApp.UI
{
    public class BasicPage : System.Web.UI.Page
    {
        public BasicPage()
        {
            Load += PageLoad;
        }
        private void PageLoad(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(SysContext.CurrentLoginCode) &&
                !string.IsNullOrEmpty(SysContext.CurrentFullName)) return;
            Response.Write("<script>parent.location.href='/login.aspx'</script>");
            Response.End();
        }
    }
}
